package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author ly
 * @date 2021/9/4 0004 14:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {

    /**
     * 主键id
     */
    @Id
    private ObjectId id;


    /***
     * 发布语音的用户id
     */
    private Long userId;


    /**
     * 语音地址
     */
    private String soundUrl;


    /**
     * 创建时间
     */
    private Long created;


    /**
     * 修改时间
     */
    private Long updated;
}
